<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    <script src="../ExternalLibrary/jquery.js"></script>
    <script src="../ExternalLibrary/jsencrypt.js"></script>
    <script type="text/javascript">
        $(function () {
            var encrypt = new JSEncrypt();
            encrypt.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoF2knIallDvHgfxg65eLUEEC3ijX1okK\n" +
                "+5rIh/+YStpNrQcxavB6DVc2ePFElMvj6LR43H3X9RDEHey8HR3aopSOYT1hVDPqUUwM5d3xyqu0\n" +
                "vo7yi0fJkOOCgzG8nf7QiURMhEi4+/CjFhnTztARX/c2ZyGAtyaQZptWPmk/0/VCVc/apYjXvCBl\n" +
                "Cz2BoaLV8ZeYVKA8ujtfu1LrpnvDabmrW7aYMuoKdyb1nHq7Ckl0g/GZ0lBCUaoi6+dpDBuvbng2\n" +
                "4Z6UgWmsKL1J8QZOYltimJM23QE/plpjytgx9dvBPNGL/j2REYn9toQjIeQKdiJX04Ye5r6UkP/e\n" +
                "G9Ha8QIDAQAB");

            var data = encrypt.encrypt("blogyoodbcom");
            console.log(data);
            $('#data').val(data);
        });
    </script>
</head>
<body>
    <div>
         <input type="text" id="data" value="" />
    </div>
</body>
</html>